package com.upb.webserver.common.enums;

import lombok.AllArgsConstructor;
import lombok.NoArgsConstructor;

@AllArgsConstructor
@NoArgsConstructor
public enum OrgTypeEnum {
    FISCO_ORG(0, "fisco 的机构"),
    FABRIC_PEER_ORG(1, "fabric的peer机构"),
    FABRIC_ORDER_ORG(2, "fabric的order机构");

    private byte value;
    private String description;

    OrgTypeEnum(int value, String description) {
        this.value = (byte) value;
        this.description = description;
    }

    private OrgTypeEnum(Byte type) {
        this.value = type;
    }

    public byte getValue() {
        return this.value;
    }
}
